package com.ruoyi.service.mapper;

import com.ruoyi.service.domain.ServiceOrders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单信息表Mapper接口
 * 
 * @author ZDL
 * @date 2024-11-13
 */
public interface ServiceOrdersMapper 
{
    /**
     * 查询订单信息表
     * 
     * @param orderId 订单信息表主键
     * @return 订单信息表
     */
    public ServiceOrders selectServiceOrdersByOrderId(Long orderId);
    public ServiceOrders selectServiceOrdersByOrderCode(String orderCode);
    public List<ServiceOrders> selectServiceOrdersByUserId(Long userId);

    /**
     * 查询订单信息表列表
     * 
     * @param serviceOrders 订单信息表
     * @return 订单信息表集合
     */
    public List<ServiceOrders> selectServiceOrdersList(ServiceOrders serviceOrders);
    public List<ServiceOrders> selectServiceOrdersListSchedule(ServiceOrders serviceOrders);

    public List<ServiceOrders> selectServiceOrdersListAll(ServiceOrders serviceOrders);
    public List<ServiceOrders> selectServiceOrdersListAllByStatus(@Param("serviceOrders") ServiceOrders serviceOrders,@Param("orderServiceFlags") Long[] orderServiceFlags);

    /**
     * 新增订单信息表
     * 
     * @param serviceOrders 订单信息表
     * @return 结果
     */
    public int insertServiceOrders(ServiceOrders serviceOrders);

    /**
     * 修改订单信息表
     * 
     * @param serviceOrders 订单信息表
     * @return 结果
     */
    public int updateServiceOrders(ServiceOrders serviceOrders);

    /**
     * 删除订单信息表
     * 
     * @param orderId 订单信息表主键
     * @return 结果
     */
    public int deleteServiceOrdersByOrderId(Long orderId);

    /**
     * 批量删除订单信息表
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteServiceOrdersByOrderIds(Long[] orderIds);
}
